package com.woniuxy.jiapei.controller;


import com.woniuxy.jiapei.pojo.Customer;
import com.woniuxy.jiapei.service.CustomerService;
import com.woniuxy.jiapei.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * customer 前端控制器
 * </p>
 *
 * @author lr
 * @since 2020-10-21
 */
@RestController
@RequestMapping("/jiapei/customer")
public class CustomerController {
    @Autowired
    private CustomerService customerService;
    @ApiOperation("测试接口")
    @GetMapping("/test")
    public R test() {
        List<Customer> list = customerService.list();
        return R.ok().data("list",list);
    }

}

